.profile-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
}

.profile-header {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #409eff22 0%, #409eff05 100%);
  border-radius: 12px;
  position: relative;
}

.user-level-badge {
  position: relative;
  width: 220px;
  height: 220px;
  padding: 10px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(64, 158, 255, 0.15);
}

.level-circle {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border-radius: 50%;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.level-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(64, 158, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.level-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  animation: fadeIn 0.5s ease-out;
}

.level-number {
  font-size: 64px;
  font-weight: bold;
  background: linear-gradient(135deg, #409eff, #66b1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.level-text {
  font-size: 20px;
  color: #606266;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 2px;
}

.level-progress {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke: url(#gradient);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(64, 158, 255, 0.4));
  transition: stroke-dasharray 0.5s ease;
}

.achievement-badge {
  position: absolute;
  top: -15px;
  right: -60px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2;
}

.achievement-badge.beginner {
  background: linear-gradient(135deg, #67c23a, #95d475);
}

.achievement-badge.advanced {
  background: linear-gradient(135deg, #409eff, #66b1ff);
}

.achievement-badge.expert {
  background: linear-gradient(135deg, #f56c6c, #ff9999);
}

.achievement-badge.master {
  background: linear-gradient(135deg, #e6a23c, #f3d19e);
  animation: shine 2s infinite linear;
}

.profile-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.profile-info {
  padding: 30px;
}

.profile-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #ebeef5;
}

.profile-info-header h2 {
  margin: 0;
  font-size: 24px;
  color: #303133;
  font-weight: 600;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.profile-form .el-form-item {
  margin-bottom: 0;
}

.profile-form .full-width {
  grid-column: span 2;
}

.statistics {
  margin-top: 40px;
  padding: 30px;
  background: #f5f7fa;
  border-radius: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.statistics .el-card {
  text-align: center;
  border: none;
  background: white;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.statistics .el-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.statistics .statistic-header {
  font-size: 16px;
  color: #606266;
  margin-bottom: 10px;
}

.statistics .statistic-value {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(135deg, #409eff, #66b1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 15px 0;
}

.avatar-uploader {
  text-align: center;
  margin: 20px 0;
}

.avatar-uploader .el-upload {
  border: 2px dashed #409eff33;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.avatar-uploader .el-upload:hover {
  border-color: #409eff;
  background: #409eff0a;
}

.avatar-uploader-icon {
  font-size: 32px;
  color: #409eff;
  width: 120px;
  height: 120px;
  line-height: 120px;
  text-align: center;
  transition: all 0.3s ease;
}

.avatar {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.loading {
  padding: 40px;
  text-align: center;
}

/* Form field styles */
.info-field {
  margin-bottom: 20px;
}

.info-field-label {
  font-size: 14px;
  color: #909399;
  margin-bottom: 8px;
}

.info-field-value {
  font-size: 16px;
  color: #303133;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
  80% {
    opacity: 1;
    transform: scale(0.89);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-container {
    padding: 10px;
  }

  .profile-header {
    padding: 20px;
  }

  .user-level-badge {
    width: 180px;
    height: 180px;
  }

  .level-number {
    font-size: 48px;
  }

  .level-text {
    font-size: 16px;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-form .full-width {
    grid-column: span 1;
  }

  .statistics {
    padding: 15px;
  }

  .statistics .statistic-value {
    font-size: 24px;
  }

  .achievement-badge {
    right: -40px;
    font-size: 14px;
    padding: 6px 16px;
  }
}
